﻿using System;
using System . Collections . Generic;
using System . Linq;
using System . Text;
using System . Xml . Linq;
using WenceyWang . RichMan4L . Calendars;

namespace WenceyWang . RichMan4L . Maps
{
	/// <summary>
	/// 表示区块，区块会计算积水
	/// </summary>
	public abstract class Block : MapObject
	{
		/// <summary>
		/// 表示当前区块的积水量
		/// </summary>
		public virtual int PondingAmount { get; set; }

		/// <summary>
		/// 表示每天能够减少的积水量
		/// </summary>
		public abstract int PondingDecrease { get; }

		public bool IsWet { get { return PondingAmount != 0; } }

		public bool IsFrozen { get { return IceThickness != 0; } }

		public int IceThickness { get; protected set; }

		public bool IsBearSnow { get { return SnowThickness != 0; } }

		public int SnowThickness { get; protected set; }

		public override void StartDay ( GameDate nextDate )
		{

		}

		public Block ( XElement resource ) : base ( resource )
		{

		}
	}
}
